package com.smartlifev30.baiwei.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.smartlifev30.R;
import com.smartlifev30.baiwei.adapter.TimerAdapter;

import java.util.ArrayList;

public class TimerActivity extends AppCompatActivity {

    private RecyclerView recyclerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_timer);
        initView();
    }

    private void initView() {
         recyclerView = findViewById(R.id.timer_recycler_view);
         recyclerView.setLayoutManager(new LinearLayoutManager(this));
         recyclerView.setAdapter(new TimerAdapter(this, new ArrayList<>()));

    }

    public void titleBack(View view) {
        onBackPressed();
    }
}
